package io.qar.reviews.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;
import java.util.Date;

/**
 * 评论表
 *
 * @author yyyyjinying 1020066395@qq.com
 * @since 3.0 2024-06-10
 */
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class ReviewsExcel {
    @ExcelProperty(value = "用户ID", index = 0)
    private Long userId;
    @ExcelProperty(value = "餐厅ID", index = 1)
    private Long restaurantId;
    @ExcelProperty(value = "评论内容", index = 2)
    private String reviewContent;
    @ExcelProperty(value = "评分", index = 3)
    private Integer rating;
    @ExcelProperty(value = "评论时间", index = 4)
    private Date reviewTime;
}